package com.firewolf.mains;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.firewolf.entites.Person;
import com.firewolf.service.PersonService;

public class MainDriver {
	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("spring.xml");
		PersonService service = ctx.getBean(PersonService.class);
		Person p1 = new Person("刘兴", 12, "帅！");
		Person p2 = new Person("刘兴2", 12, "帅帅帅！");
		service.addPerson(p1, p2);
	}
}